/**
 * Created by luckyjing on 16/3/26.
 */
import React from 'react';
import Dialog from 'material-ui/lib/dialog';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/raised-button';

export default class DialogExampleSimple extends React.Component {
    constructor(props) {
        super(props);

    }

    render() {
        const actions = [
            <FlatButton
                label="关闭"
                secondary={true}
                onTouchTap={this.props.handleClose}
            />
        ];

        return (
            <div>
                <Dialog
                    title={this.props.title}
                    actions={actions}
                    modal={false}
                    open={this.props.open}
                    onRequestClose={this.props.handleClose}
                >
                    {this.props.content}
                </Dialog>
            </div>
        );
    }
}